#pragma once

class Stream;
class ServerClient;
class ServerClientManager
{
public:
	ServerClientManager();
	~ServerClientManager();

public:
	bool load();
	void update(UInt32);
	void addServerClient(ServerClient *);
	void broadcast(Stream&);

	void getOnlineCount(UInt32&, UInt32&);

public:
	ServerClient * getServerClient(UInt32);
	ServerClient * selectIdleServerClient();

protected:
	std::map<UInt32, ServerClient *> _serverClients;
};